// @import '../../style/mixins';
// @import '../../style/themes/default';
@import '~@/theme/index.less';

@cardPrefixCls: je-card;

.@{cardPrefixCls} {
  &:not(.@{cardPrefixCls}-full) {
    .hairline('all', @border-color-base, @radius-md);
  }
  // 删除边框保留radius
  &.@{cardPrefixCls}-unborder {
    .hairline-remove('all');
    border-radius: @radius-md;
  }
  &.@{cardPrefixCls}-unpadding {
    .@{cardPrefixCls}-body{
      padding: 0;
    }
  }
  margin-bottom: @v-spacing-md;
  // min-height: 96 * @hd;
  // padding-bottom: @v-spacing-xs;
  display: flex;
  flex-direction: column;
  background-color: @fill-base;

  &&-full {
    position: relative;
    .hairline('top');
    .hairline('bottom');
  }
  &&-not-full{
    .hairline-remove('all')
  }
  &-header {
    display: flex;
    align-items: center;
    position: relative;
    font-size: @font-size-heading;
    padding: @v-spacing-md @h-spacing-lg;
    &-title{
        margin-left: 5px;
        font-weight: 500;
    }
    &-content {
      flex: 2;
      text-align: left;
      color: @color-text-base;
      display: flex;
      align-items: center;
      div{
        width: 100%;
      }
      img {
        margin-right: @h-spacing-sm;
      }
    }

    &-extra {
      flex: 1;
      text-align: right;
      font-size: @font-size-heading;
      color: @color-text-caption;
    }

    &-slotHeader {
      flex: 0;
    }
  }

  &-body {
    position: relative;
    .hairline('top');
    padding: @v-spacing-lg @h-spacing-lg @v-spacing-sm;
    font-size: @font-size-subhead;
    color: @color-text-paragraph;
    min-height: 40 * @hd;
    flex: 1;
  }

  &-footer {
    font-size: @font-size-base;
    color: @color-text-caption;
    padding: 0 @h-spacing-lg;
    display: flex;

    &-content {
      flex: 2;
    }

    &-extra {
      flex: 1;
      text-align: right;
    }
  }
}
